package com.adan.content.service;

import com.adan.content.model.po.CourseTeacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author adan
 * @since 2023-05-30
 */
public interface CourseTeacherService extends IService<CourseTeacher> {

    /**
     * 查询教师信息
     * @param courseId 课程id
     * @return  List<CourseTeacher>
     */
    List<CourseTeacher> queryCourseTeachers(Long courseId);

    /**
     * 添加/修改教师信息
     * @param courseTeacher courseTeacher
     * @return CourseTeacher
     */
    CourseTeacher saveCourseTeacher(CourseTeacher courseTeacher);

    /**
     * 删除教师信息
     * @param courseId courseId
     * @param teacherId teacherId
     */
    void deleteCourseTeacher(Long courseId, Long teacherId);
}
